home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1993…ch: Other People's Memory / ADC Developer CD (1993-03) (''Other People's Memory'')_iso / Dev.CD Mar 93.iso / Development Platforms / Apple II / Essentials / MPW IIGS Interfaces / AIIGSIncludes / E16.Control < prev    next >
Encoding:
Text File  |  1992-03-04  |  6.0 KB  |  189 lines  |  [TEXT/MPS ]

  1. ; File:  E16.Control
  2. ;
  3. ;
  4. ; Copyright Apple Computer, Inc. 1986-91
  5. ; All Rights Reserved
  6. ;
  7. ;
  8. noConstraint EQU $0000  ; No constraint on movement.
  9. hAxisOnly EQU $0001  ; Horizontal axis only.
  10. vAxisOnly EQU $0002  ; Vertical axis only.
  11. simpRound EQU $0000  ; Simple button flag
  12. upFlag EQU $0001  ; Scroll bar flag. 
  13. boldButton EQU $0001  ; Bold round cornered outlined button.
  14. simpBRound EQU $0001  ; Simple button flag
  15. downFlag EQU $0002  ; Scroll bar flag.
  16. simpSquare EQU $0002  ; Simple button flag
  17. simpDropSquare EQU $0003  ; Simple button flag
  18. leftFlag EQU $0004  ; Scroll bar flag.
  19. rightFlag EQU $0008  ; Scroll bar flag.
  20. dirScroll EQU $0010  ; Scroll bar flag.
  21. horScroll EQU $0010  ; Scroll bar flag.
  22. family EQU $007F  ; Mask for radio button family number
  23. ctlInVis EQU $0080  ; invisible mask for any type of control 
  24. fCallWindowMgr EQU $0001  ; Control Template flag value
  25. fSubstituteText EQU $0002
  26. fSubTextType EQU $0001
  27. inListBox EQU $88
  28. fBlastText EQU $0004 ; static text control
  29. fTextCanDim EQU $0008 ; static text control
  30. fNoTrackIcon EQU $0008 ; make Icon Button play dead
  31.  
  32. simpleProc EQU $00000000
  33. checkProc EQU $02000000
  34. radioProc EQU $04000000
  35. scrollProc EQU $06000000
  36. growProc EQU $08000000
  37. drawCtl EQU $0000  ; Draw control command.
  38. calcCRect EQU $0001  ; Compute drag RECT command.
  39. testCtl EQU $0002  ; Hit test command.
  40. initCtl EQU $0003  ; Initialize command.
  41. dispCtl EQU $0004  ; Dispose command.
  42. posCtl EQU $0005  ; Move indicator command.
  43. thumbCtl EQU $0006  ; Compute drag parameters command.
  44. dragCtl EQU $0007  ; Drag command.
  45. autoTrack EQU $0008  ; Action command.
  46. newValue EQU $0009  ; Set new value command.
  47. setParams EQU $000A  ; Set new parameters command.
  48. moveCtl EQU $000B  ; Move command.
  49. recSize EQU $000C  ; Return record size command.
  50. ctlHandleEvent EQU $000D  ; Handle a keystroke or menu selection
  51. ctlChangeTarget EQU $000E  ; Issued when control's target status has changed
  52. ctlChangeBounds EQU $000F  ; Issued when control's boundary rectangle has changed
  53. ctlWindChangeSize EQU $0010  ; Window has been grown or zoomed
  54. ctlHandleTab EQU $0011  ; Control has been tabbed to
  55. ctlNotifyMultiPart EQU $0012  ; A multipart control has been hidden, drawn or shown
  56. ctlWinStateChange EQU $0013  ; Window state has changed
  57. noHilite EQU $0000  ; Param to HiliteControl
  58. inactiveHilite EQU $00FF  ; Param to HiliteControl
  59. noPart EQU $0000
  60. simpleButton EQU $0002
  61. checkBox EQU $0003
  62. radioButton EQU $0004
  63. upArrow EQU $0005
  64. downArrow EQU $0006
  65. pageUp EQU $0007
  66. pageDown EQU $0008
  67. growBox EQU $000A
  68. thumb EQU $0081
  69.  
  70. ; moreFlags values
  71. fCtlTarget EQU $8000  ; is current target of typing commands
  72. fCtlCanBeTarget EQU $4000  ; can be made the target control
  73. fCtlWantEvent EQU $2000  ; control can be called view SendEventToCtl
  74. fCtlWantsEvent EQU $2000  ; control can be called view SendEventToCtl
  75. fCtlWantEvents EQU $2000  ; control can be called view SendEventToCtl
  76. fCtlWantsEvents EQU $2000  ; control can be called view SendEventToCtl
  77. fCtlProcRefNotPtr EQU $1000  ; set = ID of defproc, clear = pointer to defproc
  78. fCtlTellAboutSize EQU $0800  ; set if ctl needs notification when size of owning window changes
  79. fCtlIsMultiPart EQU $0400  ; set if ctl needs notification to be hidden
  80. fMenuDefIsText EQU $0004
  81. fDrawIconInResult EQU $0020
  82. fDrawPopDownIcon EQU $0080
  83.  
  84. colorDescriptor EQU $000C  ; indicates type of reference in colorRef
  85. styleDescriptor EQU $0003  ; indicates type of reference in styleRef
  86. titleIsPtr EQU $00
  87. titleIsHandle EQU $01
  88. titleIsResource EQU $02
  89. colorTableIsPtr EQU $00
  90. colorTableIsHandle EQU $04
  91. colorTableIsResource EQU $08
  92. ctlHideCtl EQU $12
  93. singlePtr EQU $0000
  94. singleHandle EQU $0001
  95. singleResource EQU $0002
  96. ptrToPtr EQU $0003
  97. ptrToHandle EQU $0004
  98. ptrToResource EQU $0005
  99. handleToPtr EQU $0006
  100. handleToHandle EQU $0007
  101. handleToResource EQU $0008
  102. resourceToResource EQU $0009
  103. simpleButtonControl EQU $80000000
  104. checkControl EQU $82000000
  105. radioControl EQU $84000000
  106. scrollBarControl EQU $86000000
  107. growControl EQU $88000000
  108. statTextControl EQU $81000000
  109. editLineControl EQU $83000000
  110. editTextControl EQU $85000000
  111. popUpControl EQU $87000000
  112. listControl EQU $89000000
  113. pictureControl EQU $8D000000
  114. iconButtonControl EQU $87FF0001
  115. thermometerControl EQU $87FF0002
  116. rectangleControl EQU $87FF0003
  117.  
  118. wmNotStartedUp EQU $1001  ; Window manager was not initialized
  119. cmNotInitialized EQU $1002  ; Control manager was not initialized
  120. noCtlInList EQU $1003  ; Control not in window list
  121. noCtlError EQU $1004  ; no controls in window
  122. noSuperCtlError EQU $1005  ; no super controls in window
  123. noCtlTargetError EQU $1006  ; no target super control
  124. notSuperCtlError EQU $1007  ; action can only be done on super control
  125. canNotBeTargetError EQU $1008  ; conrol cannot be made target
  126. noSuchIDError EQU $1009  ; specified ID cannot be found
  127. tooFewParmsError EQU $100A  ; not enough params specified
  128. noCtlToBeTargetError EQU $100B  ; NextCtl call, no ctl could be target
  129. noFrontWindowError EQU $100C  ; there is no front window
  130. selectedIcon EQU $0001
  131. openIcon EQU $0002
  132. offline EQU $0004
  133. fListString EQU $0001
  134. fListSelect EQU $0002
  135. fListScrollBar EQU $0004
  136. fRightJustifyResult EQU $0001
  137. fRightJustifyTitle EQU $0002
  138. fInWindowOnly EQU $0004
  139. fDontDrawResult EQU $0008
  140. fDontDrawTitle EQU $0010
  141. fDontHiliteTitle EQU $0020
  142. fType2PopUp EQU $0040
  143. ; offset constants for BarColors
  144. obarOutline EQU 0
  145. obarNorArrow EQU 2
  146. obarSelArrow EQU 4
  147. obarArrowBack EQU 6
  148. obarNorThumb EQU 8
  149. obarSelThumb EQU 10
  150. obarPageRgn EQU 12
  151. obarInactive EQU 14
  152. ; offset constants for BoxColors
  153. oboxReserved EQU 0
  154. oboxNor EQU 2
  155. oboxSel EQU 4
  156. oboxTitle EQU 6
  157. ; offset constants for BttnColors
  158. obttnOutline EQU 0
  159. obttnNorBack EQU 2
  160. obttnSelBack EQU 4
  161. obttnNorText EQU 6
  162. obttnSelText EQU 8
  163. ; offset constants for CtlRec
  164. octlNext EQU 0
  165. octlOwner EQU 4
  166. octlRect EQU 8
  167. octlFlag EQU 16
  168. octlHilite EQU 17
  169. octlValue EQU 18
  170. octlProc EQU 20
  171. octlAction EQU 24
  172. octlData EQU 28
  173. octlRefCon EQU 32
  174. octlColor EQU 36
  175. octlReserved EQU 40
  176. octlID EQU 56
  177. octlMoreFlags EQU 60
  178. octlVersion EQU 62
  179. ; offset constants for LimitBlk
  180. oboundRect EQU 0
  181. oslopRect EQU 8
  182. oaxisParam EQU 16
  183. odragPatt EQU 18
  184. ; offset constants for RadioColors
  185. oradReserved EQU 0
  186. oradNor EQU 2
  187. oradSel EQU 4
  188. oradTitle EQU 6
  189.